

#include <iostream>
#include <list>
#include <vector>
#include <algorithm>


void test_case1() {

    std::vector<int> v1;
    v1.push_back(3);
    v1.push_back(5);
    v1.push_back(4);
    v1.push_back(2);
    v1.push_back(9);
    v1.push_back(1);

    std::sort(v1.begin(), v1.end(), std::greater<int>());

    for (auto item : v1)
        std::cout << item << std::endl;

    std::sort(v1.begin(), v1.end());

    for (auto item : v1)
        std::cout << item << std::endl;


}

void test_case2() {

    std::list<int> l1;
    l1.push_back(9);
    l1.push_back(11);
    l1.push_back(10);
    l1.push_back(7);

    //std::sort(l1.begin(), l1.end());

    for (auto item : l1) 
        std::cout << item << std::endl;

}


int main() {

    test_case1();
    //test_case2();

    return 0;
}